package edu.xjdx.os.service;

import edu.xjdx.os.domain.Cart;
import edu.xjdx.os.domain.CartDetail;
import edu.xjdx.os.domain.Customer;
import edu.xjdx.os.domain.Goods;

import java.util.List;

public interface CartService {
    void add(Customer customer, Goods goods,Integer amount);
    List<CartDetail> findByCustomer(Customer customer);
    void modify(String id,Integer amount);
    void delete(String id);
    Cart findById(String id);
}
